package homework.exp01;

import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
 
public class A {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        String str = "";
        Pattern pattern1 = Pattern.compile("\"*//*\"");
        Pattern pattern2 = Pattern.compile("//*");
        while(cin.hasNextLine()){
            int flag = 0;
            String s = cin.nextLine();
            Matcher matcher1 = pattern1.matcher(s);
            Matcher matcher2 = pattern2.matcher(s);
            if(matcher1.find()){
 
            }else{
                if(matcher2.find()){
                    int index = matcher2.start();
                    if(index!=0){
                        System.out.println(s.substring(0,index));
                    }
                    flag = 1;
                }
            }
            if(flag == 0){
                System.out.println(s);
            }
        }
        cin.close();
    }
}
 